﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Threading;
using System.Data.Sql;
using System.Data.SqlClient;
using System.Data.SqlTypes;
using NPCScriptEditor.Classes;
using System.Diagnostics;

namespace NPCScriptEditor.Windows
{
    public partial class FormCommunity : Form
    {
        public FormCommunity()
        {
            InitializeComponent();
        }

        private void FormCommunity_Load(object sender, EventArgs e)
        {
            Thread tLoadCommuntiy = new Thread(new ThreadStart(getCommunication));
            tLoadCommuntiy.Start();
        }
        private void getCommunication() {
            this.BeginInvoke(new MethodInvoker(gc));
               
               
              
            
            //加载
            
        }
        private void gc() {
            //Debug.WriteLine("233");
            for (int i = 0; i < 3; i++)
            {

            ComItem c = new ComItem("年兽"+i+"号克隆人","全新timer延时代码！\r\n"+i.ToString(),null,"");
                communList1.additem(c);
            }
            //panel1.Refresh();
           // this.Refresh();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            
        }
    }
}
